package com.xia.ndk08_as_code;

import android.util.Log;

public class Student {
    private final static String TAG=Student.class.getSimpleName();
    private int age;
    private String name;

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        Log.d(TAG, "Java setAge: "+age);
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        Log.d(TAG, "Java setName: "+name);
        this.name = name;
    }

    public static void myStaticMethod(){
        Log.d(TAG, "myStaticMethod: 1111");
    }
}
